package jmine.tec.datadigester.positional.meta;

import java.beans.PropertyDescriptor;

/**
 * @author lundberg
 */
public class PositionalIntFieldMetadata extends PositionalFieldMetadata {

    /**
     * @param property property
     * @param description description
     * @param start start
     * @param size size
     */
    public PositionalIntFieldMetadata(PropertyDescriptor property, String description, int start, int size) {
        super(property, description, start, size);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void checkPropertyCompatibility() {
        if (!this.getProperty().getPropertyType().equals(int.class)) {
            super.checkPropertyCompatibility();
        }
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected Class<?> getFieldType() {
        return Integer.class;
    }

}
